package com.itheima.StringBuilder;

import java.util.Scanner;

public class Demo01 {
    public static void main(String[] args) {
        method();
    }

    private static void method() {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个字符串:");
        String string = sc.nextLine();

        StringBuilder sb=new StringBuilder(string);
        sb.reverse();
        String string1 = sb.toString();
        if (string1.equals(string)){
            System.out.println("是对称字符串");
        }else {
            System.out.println("不是对称字符串");
        }
    }
}
